﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using OOS.Application.Setmeal.Dtos;
using OOS.Application.Setmeal.Vos;
using OOS.Core.RelyOn;
using OOS.Core.Setmeal;

namespace OOS.Application.Setmeal.Services.Interfaces
{
    /// <summary>
    /// 套餐管理
    /// </summary>
    public interface ISetmealBasicService
    {
        /// <summary>
        /// 新增套餐
        /// </summary>
        /// <param name="setmealBasic"></param>
        /// <returns></returns>
        Boolean InsertSetmealBasic(SetmealBasic setmealBasic);


        /// <summary>
        /// 根据id查询套餐详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        SetmealBasicDto SelectSetmealById(int id);

        /// <summary>
        /// 根据条件(套餐名称模糊查询，套餐状态精确查询，套餐分类精确查询)分页查询
        /// </summary>
        /// <param name="searchSetmealVo"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        PageResponseDto<List<SetmealBasicDto>> SelectPageByConditions(SearchSetmealVo searchSetmealVo, int pageIndex, int pageSize);

        /// <summary>
        /// 根据id修改套餐信息
        /// </summary>
        /// <param name="setmealBasic"></param>
        /// <returns></returns>
        Boolean UpdateSetmealBasicById(SetmealBasic setmealBasic);

        /// <summary>
        /// 根据id删除套餐信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Boolean DeleteSetmealBasicById(int id);

        /// <summary>
        /// 根据id修改套餐状态 
        /// </summary>
        /// <returns></returns>
        Boolean UpdateSetmealStatusById(int id);

        /// <summary>
        /// 批量修改套餐状态
        /// </summary>
        /// <param name="ids"></param>
        /// <param name="type"></param>
        /// <returns></returns>
        Boolean UpdateSetmealStatusByIds(int[] ids, int type);

        /// <summary>
        /// 批量删除套餐
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Boolean DeleteSetmealBasicByIds(int[] ids);
    }
}
